﻿<br />
<div class="code">
&#64;model&nbsp;SpamModel<br />
<br />
&lt;p&gt;&lt;label&nbsp;for=<span class="String">"cb1"</span>&gt;Send&nbsp;me&nbsp;spam:&nbsp;&lt;/label&gt;&nbsp;&lt;input&nbsp;id="cb1"&nbsp;type=<span class="String">"checkbox"</span>&nbsp;&#64;Html.KoAttrChecked(m&nbsp;=&gt;&nbsp;m.WantsSpam)&nbsp;/&gt;&lt;/p&gt;<br />
<br />
&lt;p&gt;Want&nbsp;to&nbsp;get&nbsp;spam:&nbsp;&#64;Html.KoText(m&nbsp;=&gt;&nbsp;m.WantsSpam)&lt;/p&gt;<br />
<br />
&#64;Model.ApplyBindingsScript(KoBindingOptions.IncludeData)
</div>